package com.bestcem.xm.award.dao.mapper;


import com.bestcem.xm.award.entity.mysql.AwardPointStatsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface AwardPointStatsMapper {

    int insert(AwardPointStatsEntity record);

//    int insertSelective(AwardPointStatsEntity record);

    AwardPointStatsEntity selectByPrimaryKey(String awardId);

//    int updateByPrimaryKeySelective(AwardPointStatsEntity record);

//    int updateByPrimaryKey(AwardPointStatsEntity record);

    int addCountAndAmountByAwardId(@Param("awardId") String awardId, @Param("count") long count, @Param("amount") long amount, @Param("updateTime") Date now);

}